﻿using TomNet.App.Model.DTO;
using TomNet.SqlSugarCore.Entity;

namespace TomNet.App.Model.DB
{
	/// <summary>
	/// 开关机状态信息
	/// </summary>
	public class BusinessOnOffRunnings : IdentityEntityBase<int>
	{
		/// <summary>
		/// 交易ID
		/// </summary>
		public int BusinessId { get; set; }

		/// <summary>
		/// 关机时间
		/// </summary>
		public System.DateTime OffTime { get { return _offtime; } set { _offtime = value; } }
		System.DateTime _offtime = System.DateTime.Now;

		/// <summary>
		/// 开机时间
		/// </summary>
		public System.DateTime OnTime { get { return _ontime; } set { _ontime = value; } }
		System.DateTime _ontime = System.DateTime.Now;

		/// <summary>
		/// 关机说明
		/// </summary>
		public string Remark { get; set; }

		/// <summary>
		/// 状态
		/// 1 关机中
		/// 2 已开机
		/// </summary>
		public int State { get; set; }
	}
}
